]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Also scroll on focused indicators
authorCarlos Soriano <carlos.soriano89@gmail.com>
Fri, 6 Sep 2013 07:30:51 +0000 (09:30 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Fri, 6 Sep 2013 08:40:07 +0000 (10:40 +0200)
Since now if you focus the indicators, you can't scroll and
change pages in the app picker. That was reported as odd from
some users/developers.
So allow to scroll when the focus is in the indicators.

https://bugzilla.gnome.org/show_bug.cgi?id=707609

js/ui/appDisplay.js

index 7263ef0931f9a1b263eb80c04f1b46186c2511a9..dbcb8d9b61dd9eb36c8a77a6ae67558bdb5078d3 100644 (file)
@@ -175,7 +175,8 @@ const PageIndicators = new Lang.Class({
                                         vertical: true,
                                         x_expand: true, y_expand: true,
                                         x_align: Clutter.ActorAlign.END,
-                                        y_align: Clutter.ActorAlign.CENTER });
+                                        y_align: Clutter.ActorAlign.CENTER,
+                                        reactive: true });
         this._nPages = 0;
         this._currentPage = undefined;
 
@@ -281,6 +282,7 @@ const AllView = new Lang.Class({
             function(indicators, pageIndex) {
                 this.goToPage(pageIndex);
             }));
+        this._pageIndicators.actor.connect('scroll-event', Lang.bind(this, this._onScroll));
         this.actor.add_actor(this._pageIndicators.actor);
 
         this._folderIcons = [];